﻿package {
	
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class Character extends MovieClip{
		
		protected var _life:Number;
		protected var _speed:int;
	    protected var _id:String;
		protected var _type:String;
		protected var _boundaries:MovieClip;
		
		
		public function Character(){};
				
		public function get life():Number{
			return _life;
		}
		
		public function set life(val:Number):void{
			_life = val;
		}
		
		public function get speed():int{
			return _speed;
		}
		
		public function set speed(val:int):void{
			_speed = val;
		}
		
		public function get id():String{
			return _id;
		}
		
		public function set id(val:String):void{
			_id = val;
		}
		
		public function get type():String{
			return _type;
		}
		
		public function set type(val:String):void{
			_type = val;
		}
		
		public function get boundaries():MovieClip{
			return _boundaries;
		}
		
		public function set boundaries(val:MovieClip):void{
			_boundaries = val;
		}
					
		public function moveRight(evt:Event):void{
			x += _speed;
		}
		
		public function moveLeft(evt:Event):void{
			x -= _speed;
		}
		
		
	}
	
}